import type { DistributionDeviceStatus } from "../components/types";

/**
 * 高速电机
 */
const hightSpeedMotor: DistributionDeviceStatus = {
  status: "green",
  title: "高速电机",
  partId: "",
  characteristicItems: {
    currentSpeed: {
      label: "当前转速",
      value: "--",
      unit: "rpm"
    },
    currentLifespan: {
      label: "当前寿命",
      value: "--",
      unit: "day"
    },
    warningValue: {
      label: "经济寿命",
      value: "--",
      unit: "day"
    },
    stopValue: {
      label: "停机寿命",
      value: "--",
      unit: "day"
    }
  }
};

/**
 * 高速分散腔电机
 */
const highSpeedDispersedCavityMotor: DistributionDeviceStatus = {
  status: "green",
  title: "高速分散腔电机",
  partId: "",
  characteristicItems: {
    currentPressure: {
      label: "当前压强",
      value: "--",
      unit: "kpa"
    },
    currentLifespan: {
      label: "当前寿命",
      value: "--",
      unit: "day"
    },
    warningValue: {
      label: "经济寿命",
      value: "--",
      unit: "day"
    },
    stopValue: {
      label: "停机寿命",
      value: "--",
      unit: "day"
    }
  }
};

/**
 * 循环罐A
 */
const circulatingTankA: DistributionDeviceStatus = {
  status: "green",
  title: "循环罐A",
  partId: "",
  characteristicItems: {
    currentElectricCurrent: {
      label: "当前压强",
      value: "--",
      unit: "kpa"
    },
    mixingSpeed: {
      label: "搅拌速度",
      value: "--",
      unit: "rpm"
    },
    dispersionSpeed: {
      label: "分散速度",
      value: "--",
      unit: "rpm"
    },
    currentLifespan: {
      label: "当前寿命",
      value: "--",
      unit: "day"
    },
    warningValue: {
      label: "经济寿命",
      value: "--",
      unit: "day"
    },
    stopValue: {
      label: "停机寿命",
      value: "--",
      unit: "day"
    }
  }
};

/**
 * 循环罐B
 */
const circulatingTankB: DistributionDeviceStatus = {
  status: "green",
  title: "循环罐B",
  partId: "",
  characteristicItems: {
    currentElectricCurrent: {
      label: "当前压强",
      value: "--",
      unit: "kpa"
    },
    mixingSpeed: {
      label: "搅拌速度",
      value: "--",
      unit: "rpm"
    },
    dispersionSpeed: {
      label: "分散速度",
      value: "--",
      unit: "rpm"
    },
    currentLifespan: {
      label: "当前寿命",
      value: "--",
      unit: "day"
    },
    warningValue: {
      label: "经济寿命",
      value: "--",
      unit: "day"
    },
    stopValue: {
      label: "停机寿命",
      value: "--",
      unit: "day"
    }
  }
};

/**
 * 中转罐
 */
const transferTank: DistributionDeviceStatus = {
  status: "green",
  title: "中转罐",
  partId: "",
  characteristicItems: {
    currentPressure: {
      label: "当前压强",
      value: "--",
      unit: "kpa"
    },
    currentLifespan: {
      label: "当前寿命",
      value: "--",
      unit: "day"
    },
    warningValue: {
      label: "经济寿命",
      value: "--",
      unit: "day"
    },
    stopValue: {
      label: "停机寿命",
      value: "--",
      unit: "day"
    }
  }
};

/**
 * 传动带
 */
const transmissionBeltPart: DistributionDeviceStatus = {
  status: "green",
  title: "传动带",
  partId: "",
  characteristicItems: {
    currentPressure: {
      label: "当前转速",
      value: "--",
      unit: "rpm"
    },
    currentLifespan: {
      label: "当前寿命",
      value: "--",
      unit: "day"
    },
    warningValue: {
      label: "经济寿命",
      value: "--",
      unit: "day"
    },
    stopValue: {
      label: "停机寿命",
      value: "--",
      unit: "day"
    }
  }
};

const distributionDeviceStatusList = [
  hightSpeedMotor,
  highSpeedDispersedCavityMotor,
  circulatingTankA,
  transferTank,
  transmissionBeltPart,
  circulatingTankB
];

export { distributionDeviceStatusList };
